import Vue from 'vue'
import VueRouter from 'vue-router'
// import { createRouter, createWebHashHistory } from "vue-router";
import lanhu from '@/views/lanhu/index.vue'
import yunzhuanshugaiyunpingtai from '@/views/lanhu_yunzhuanshugaiyunpingtai/index.vue'
import distribution from '@/views/lanhu_yunzhuanshugaiyunpingtai/distribution.vue'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    component: yunzhuanshugaiyunpingtai
  },
  {
    path: '/lanhu',
    name: 'lanhu',
    component: lanhu
  },
  {
    path: '/distribution',
    name: 'distribution',
    component: distribution
  }
]

const router = new VueRouter({
  mode: 'history',
  routes
})

// 制定路由规则
// const routes = [
//   {
//      path: '/home',
//      name: 'HelloWorld',
//      component: () => import("@/views/lanhu_yunzhuanshugaiyunpingtai/index.vue"),
//   },  
//   {
//      path: '/second',
//      name: 'AntiFakePgtree',
//      component: () => import("@/views/lanhu_yunzhuanshugaiyunpingtai/second.vue"),
//   }
// ];

// const router = createRouter({
//   // 设置路由模式 
//   history: createWebHashHistory(),
//   routes,
// });

export default router
